package com.jackrain.nea;

import com.jackrain.nea.core.db.DynamicDataSourceRegister;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Import;

/**
 * @author lzm
 * @date 2017-11-15
 */
@SpringBootApplication
@Import({ModelConfig.class,DynamicDataSourceRegister.class})
public class Main extends SpringBootServletInitializer {
    static {
        System.setProperty("dubbo.application.logger","slf4j");
    }

    public static void main(String[] args) {
        System.setProperty("spring.devtools.restart.enabled","false");
        SpringApplication.run(Main.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return super.configure(builder);
    }
}
